package xc.com.cms.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xc.com.cms.domain.CmsSite;
import xc.com.cms.service.CmsSiteService;

import java.util.List;


@RestController
@RequestMapping("/cmssite")
public class CmsSiteController  {
    @Autowired
    private CmsSiteService cmsSiteService;

    @GetMapping("/find")
    public List<CmsSite>findAll(){
    return cmsSiteService.findAll();
}
}
